<?php
if(empty($erro)){
?>
<article class="cadastro">
	<p class="titulocadastro"><?=isset($professor) ? "EDITAR PROFESSOR" : "CADASTRAR PROFESSOR"?></p>
	<p class="textocadastro"> Cadastre o Professor abaixo.</p>
		
	<form method="post" class="cadastrar" onsubmit="validarCadastroProfessor(this); return false;">
						<input type="hidden" name="idProfessor" id="idProfessor" value="<?=isset($professor) ? $professor->getIdProfessor() : 0?>" />
				<p class="pform">
					<label for="strNome" class="lcadastrar">Professor:</label>
					<input name="strNome" id="strNome" type="text" required value="<?=isset($professor) ? $professor->getNome() : ""?>" class="incadastro" placeHolder="João">
				</p>
				
				<p class="pform">
					<label for="strLogin" class="lcadastrar">Login:</label>
					<input name="strLogin" id="strLogin" type="text" value="<?=isset($professor) ? $professor->getLogin() : ""?>" required class="incadastro" placeHolder="João" <?=isset($professor) ? "disabled" : ""?>>
				</p>
				
				<p class="pform">
					<label for="strSenha" class="lcadastrar">Senha:</label>
					<input name="strSenha" id="strSenha" type="password" class="incadastro" placeHolder="João">
				</p>
                
                <p class="pform">
					<label for="strEmail" class="lcadastrar">Email:</label>
					<input name="strEmail" id="strEmail" type="email" value="<?=isset($professor) ? $professor->getEmail() : ""?>" class="incadastro" placeHolder="João">
				</p>
				
				<p class="pform">
					<input type="submit" value="CONFIRMAR CADASTRO" class="confirmarcadastro">
				</p>
		</form>
<div class="ligthBoxLoad" style="display: none;"><img src="/boletim/images/ajax-loader.gif"></div>
<div class="respostaAjax" style="display: none; float: left; width: 100%; heigth: auto;"></div>
</article>
<?php
}
else {
	echo $erro;
}
?>